import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import priv.project.controller.CommentController;
import priv.project.pojo.Comment;
import priv.project.pojo.ScenicSpot;
import priv.project.service.CommentService;
import priv.project.service.ScenicSpotService;

@ContextConfiguration(value = {"classpath:applicationContext.xml"})
@RunWith(SpringJUnit4ClassRunner.class)

public class test {
    @Autowired
    private CommentService commentService;
    @Autowired
    private ScenicSpotService scenicSpotService;
    @Test
    public void test1(){

      System.out.println(commentService.getPageList(1,20,new Comment()));
//        System.out.println(scenicSpotService.getPageList(1,20,new ScenicSpot()));
    }
}
